import request from '@/utils/request'

// 查询药品病历文件上传列表
export function listUpload(query) {
  return request({
    url: '/system/drugUpload/list',
    method: 'get',
    params: query
  })
}

// 查询药品病历文件上传详细
export function getUpload(id) {
  return request({
    url: '/system/drugUpload/' + id,
    method: 'get'
  })
}

// 新增药品病历文件上传
export function addUpload(data) {
  return request({
    url: '/system/drugUpload',
    method: 'post',
    data: data
  })
}

// 修改药品病历文件上传
export function updateUpload(data) {
  return request({
    url: '/system/drugUpload',
    method: 'put',
    data: data
  })
}

// 删除药品病历文件上传
export function delUpload(id) {
  return request({
    url: '/system/drugUpload/' + id,
    method: 'delete'
  })
}


// 删除药品病历文件上传
export function handleDrug(id) {
  return request({
    url: '/system/drugUpload/handleDrug',
    method: 'post',
    params:id
  })
}